textview: Avoid misplacing the Emoji chooser
authorMatthias Clasen <mclasen@redhat.com>
Wed, 1 Dec 2021 00:44:26 +0000 (19:44 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 1 Dec 2021 00:44:26 +0000 (19:44 -0500)
commitb3b0321620ae3a76b893c8b8bc84b8025fb2280f
tree6e1ed7dbd7a43627ab9f89dda22c0a8ca0eb089d
parente0deacd2368b9776cebe9955e7788cfad56af553
textview: Avoid misplacing the Emoji chooser

When the iter is at the end of the buffer,
gtk_text_view_get_iter_location returns a
rectangle with width 0, which in turn makes
gdk_rectangle_intersect return FALSE.

Avoid that by always giving the rectangle
non-empty dimensions.

Fixes: #4503
gtk/gtktextview.c